<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ข้อมูลลูกค้า</title>
<link rel="stylesheet" href="css/csstb.css" type="text/css" media="screen" />
<script src="js/jquery.js"></script>
<script>
 $(function() {
		/* For zebra striping */
        $("table tr:nth-child(odd)").addClass("odd-row");
		/* For cell text alignment */
		$("table td:first-child, table th:first-child").addClass("first");
		/* For removing the last border */
		$("table td:last-child, table th:last-child").addClass("last");
});
function ajaxlist(){
	$.ajax({
		type:'POST',
		url:'list_customer2.php',
		data:$('#frmsearch').serialize(),
		success:function(msg){
			$("#listspan").html(msg);
			}
				});//ajax
	}//ajaxlist
</script>
<script>
	function submitCus(){
	$.ajax({
			type:"POST",
			url:"insert_customer2.php",
			data:$("#fromInsert_Cus").serialize(),
			success: function(msg){
				$("#listspan").html(msg);
				}
			});//ajax
	}
	
</script>
</head>
<body>
<form id="frmsearch" name="frmsearch" action="Javascript:ajaxlist();">
  กรอกคำค้นหา :</label>
  <input type="text" name="txtsearch" id="txtsearch" />
  
  <input type="submit" name="button" id="button" value="Submit" />
</form>
<div id="listspan"></div>
</body>
</html>